package com.zh.remote.api;

import com.zh.constants.Constants;
import com.zh.remote.fallback.CustomerApiFallback;
import com.zh.result.JSONResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 远程保存Login对象
 */
@FeignClient(value = Constants.Remote.SERVICE_CUSTOMER,fallbackFactory = CustomerApiFallback.class )
@Tag(name = "乘客表",description = "乘客表")
public interface CustomerApi {

    @Operation( summary= "远程查询乘客罚款",description = "远程查询乘客罚款")
    @Parameter(name = "customerId",description = "乘客Id",required = true)
    @PostMapping("remote/select/customerFine/{id}")
    JSONResult<Boolean> customerHasFine(@PathVariable("id") Long customerId);

}


